r sample makes no use of it.
Sorry, but I don’t get it.
> \defineenumeration
> [theorem]
> [
> text=Theorem,
> title=yes,
> width=fit,
> distance=0.2em,
> alternative=serried,
> ]
> \definetextbackground[GrayBackground][
> locatio
orry, but I don’t get it.
> \defineenumeration
> [theorem]
> [
> text=Theorem,
> title=yes,
> width=fit,
> distance=0.2em,
> alternative=serried,
> ]
> \definetextbackground[GrayBackground][
> location=paragraph,
> background=color,
>
[MyInMargin][inleft]
\definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm]
\defineenumeration
[theorem]
[
text=Theorem,
title=yes,
width=fit,
distance=0.2em,
alternative=serried,
]
\definetextbackground[GrayBackground][
location
apersize[MyBook][A4] %Would print MyBook-size pages on A4 paper
> \setupbodyfont[Times New Roman,12.55pt]
> \definemargindata [MyInMargin][inright]
> \definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm]
> \defineenumeration
> [theorem]
> [
pages on A4 paper
\setupbodyfont[Times New Roman,12.55pt]
\definemargindata [MyInMargin][inright]
\definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm]
\defineenumeration
[theorem]
[
text=Theorem,
title=yes,
width=fit,
distance=0.2em
rst document with a theorem]).
Other than that, I must confess I cannot imagine what is the issue you
might be facing.
But don’t hesitate to ask with a more verbose description.
> Sorry, I have no example.
Here you have one:
\setupinteraction[state=start, focus=standard]
\defineenumeration[theo
context(text)
end
end
\stopluacode
% without that line there is no problem
\setupinteraction[state=start]
\defineenumeration[enu][text=Enu]
\defineenumeration[enu][text=Enu,title=yes]
\unprotect
\def\mc{\dosingleempty\do_my_command}
\def\do_my_command[#1]#2{%
\iffirstargumen
to_hash(keywords)
>
> if cfg['emph'] ~= nil then
> context("\\emph{" .. text .. "}")
> elseif cfg['bold'] ~= nil then
> context("\\bold{" .. text .. "}")
> else
> context(text)
> end
> end
> \stopluacode
>
> % without tha
nd
end
\stopluacode
% without that line there is no problem
\setupinteraction[state=start]
\defineenumeration[enu][text=Enu]
\unprotect
\def\mc{\dosingleempty\do_my_command}
\def\do_my_command[#1]#2{%
\iffirstargument{%
\ctxlua{userdata.my_command('#1', [==[#2]==])}%
}\el
What do you expect here to pass as argument to the oldfact command?
>
I will pass something like n, 5, 10 etc.
>
> This works here:
>
> \defineenumeration
> [proof]
> [closesymbol={\mathematics{\square}}]
>
> \starttext
>
> \startproof
> \samplefile{lorem}
/maps/36/09.pdf page no. 28 then proof is
defined as
\defineenumeration
[proof]
[ text=Proof,
number=no,
headstyle=italic,
title=no, %this is the default
closesymbol={\mathematics{\square}},
style=normal]
But the closessymbol does not work.
I will create a minimum working example and post
)$)rectangle($(mynode.north east)+(0.3ex,0.3ex)$);}
}
But I do not know how to make it work in ConTeXt as I am not very familiar
with ConTeXt.
If you see https://www.ntg.nl/maps/36/09.pdf page no. 28 then proof is
defined as
\defineenumeration
[proof]
[ text=Proof,
number=no,
headstyle=italic,
title
w Roman, 12.2pt] \definemargindata
[MyInMargin][inright]
\definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm]
\defineenumeration
[theorem]
[
text=Theorem,
title=yes,
width=fit,
distance=0.2em,
alternative=serried,
]
\definetextbackground
\setupbodyfont[Times New Roman, 12.2pt]
\definemargindata [MyInMargin][inright]
\definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm]
\defineenumeration
[theorem]
[
text=Theorem,
title=yes,
width=fit,
distance=0.2em,
alte
=on,bottomframe=on,rulethickness=1pt,width=1.90cm]
\defineenumeration
[theorem]
[
text=Theorem,
title=yes,
width=fit,
distance=0.2em,
alternative=serried,
]
\definetextbackground[paragraph][
location=paragraph,
background=color,
backgroundcolor=lightgray,
leftoffset=.5\bodyfontsize
\setupbodyfont[Times New Roman, 12.2pt]
\definemargindata [MyInMargin][inright]
\definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1.90cm]
\defineenumeration
[theorem]
[
text=Theorem,
title=yes,
width=fit,
distance=0.2em,
alternative=serried
Dear List,
i have this example:
\setupbodyfont[modern,10pt]
\definemargindata [MyInMargin][inright]
\definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1cm]
\defineenumeration
[theorem]
[
text=Theorem,
title=yes,
width=fit,
distance=0.5em
Dear List,
After once more a little changes this is the example I wanted, and it is
perfekt:
\definemargindata [MyInMargin][inright]
\definemarginframed[MyInMargin][topframe=on,bottomframe=on,rulethickness=1pt,width=1cm]
\defineenumeration
[theorem]
[
text=Theorem,
title=yes
,
> distance=0.5em,
> headstyle=bold,
> titlestyle=normal,
> way=bytext,
> conversion=numbers]
> \defineenumeration
> [theorem]
> [text=Theorem,
> title=yes,
> style=italic,
> list=all,
> listtext={Theorem }]
> \starttext
> \margintext{
25ex, width=7cm]
\setupenumerations [ before={\blank[big]},
after={\blank[big]},
location=serried,
width=broad,
distance=0.5em,
headstyle=bold,
titlestyle=normal,
way=bytext,
conversion=numbers]
\defineenumeration
[theorem]
[text=Theorem,
title=yes,
style=italic,
\}\blackrule[color=black, height=0.25ex, width=7cm]
\setupenumerations
[ before={\blank[big]},
after={\blank[big]},
location=serried,
width=broad,
distance=0.5em,
headstyle=bold,
titlestyle=normal,
way=bytext,
conversion=numbers]
\defineenumeration
[theorem]
[text=Theor
wrote:
> Dear List,
> After a few changes i have here an example:
> It works, but what I wanted to know is why are there
>
> round brackets after writing \starttheroem if i compile it.
> Should be without round brackets.
Are you looking for something like this?
\defineenum
for something like this?
\defineenumeration
[theorem]
[
text=Theorem,
title=yes,
width=fit,
distance=0.5em,
alternative=serried,
]
\starttext
\starttheorem
The square on the hypotenuse is equal to the sum of the squares on the
other two sides. Ach is das schö
[ before={\blank[big]},
after={\blank[big]},
location=serried,
width=broad,
distance=0.5em,
headstyle=bold,
titlestyle=normal,
way=bytext,
conversion=numbers]
\defineenumeration
[theorem]
[text=Theorem,
title=yes,
style=italic,
list=all
An: ntg-context mailing list
Betreff: [NTG-context] Re: Text and Remark
On 16 Nov 2023, at 12:52, Ursula Hermann wrote:
>
> \defineenumeration
> [remark]
> [location=top,text=Remark,inbetween={\blank[nowhite]},after=\blank,headstyle=bold,margin=1in]
Does
[alternative=left,text=Rema
On 16 Nov 2023, at 12:52, Ursula Hermann wrote:
>
> \defineenumeration
> [remark]
> [location=top,text=Remark,inbetween={\blank[nowhite]},after=\blank,headstyle=bold,margin=1in]
Does
[alternative=left,text=Remark,inbetween={\blank[nowhite]},after=\blank,headstyle=bold,margin=1in
Dear List:
I would like to have text next to the Remark Number
\setupindenting[yes,small,first]
\defineenumeration
[remark]
[location=top,text=Remark,inbetween={\blank[nowhite]},after=\blank,headstyle=bold,margin=1in]
\starttext
\remark
An enumeration (\tex{remark}, in this case
Title)
Code Fragment 1.2 (The Second Title)
Code Fragment 2.1 (The Third Title)
MWE:
[...]
\defineenumeration
[Counter]
[title=yes,
alternative=empty,
before=\startCountFramedText,
after=\stopCountFramedText]
\defineenumeration
[Counter]
[ title=yes,
alternative=empty
yfont=11pt,
style={\tt}]
\defineenumeration
[Code]
[title=yes,
alternative=empty,
before=\startCountFramedText,
after=\stopCountFramedText,
left={\somenamedheadnumber{chapter}{current}.}]
\starttext
\startchapter
[title=first]
\startCode
[title={The First Title},
refer
e title.
Amemd the \defineenumeration as follows:
\defineenumeration
[Counter]
[title=yes,
alternative=empty,
before=\startCountFramedText,
after=\stopCountFramedText,
left={\somenamedheadnumber{chapter}{current}:}]
—
Bruce Horrock
CountFrame}
{}
\defineenumeration
[Counter]
[title=yes,
alternative=empty,
before=\startCountFramedText,
after=\stopCountFramedText]
\starttext
\startchapter
[title=first]
\startCounter
[title={The First Title},
reference={tit1}]
Some verbatim text
\stopCounter
\startCounte
}{}
% Add the enumeration
\defineenumeration
[Counter]
[text=,
alternative=empty,
before={\FrameTitle{Counter \getnumber[Counter]}
\startFunnyText},
after={\stopFunnyText}]
\starttext
\startCounter
First example
\stopCounter
\startCounter
Second example
\stopCounter
[medium]},
alternative=serried,
right=,
headcommand=\groupedcommand{}{.},
distance=0.5em,
width=fit,
headstyle=bold,
titlestyle=bold,
way=bytext,
conversion=numbers,
prefix=chapter,
list=all,
title=yes,
indentnext=no,
]
\defineenumeration[definition][
text=Defintion,
style
=,
titlestyle=normal,
prefix=no,
prefixsegments=chapter,
way=bychapter,
prefixconversionset=digit,
counter=,
headcommand=\groupedcommand{}{.},
numbercommand=\groupedcommand{}{},
titlecommand=\groupedcommand{(}{)},
width=broad]
\defineenumeration
[definition]
[text
{}{},
titlecommand=\groupedcommand{(}{)},
width=fit]
\defineenumeration
[definition]
[text=Définition,
number=no,
style=italic]
\defineenumeration
[exemple]
[text=Exemple,
number=no,
style=normal]
\definemargindata[marginfigure][inright]
\setupmargindata [marginfigure][command
b/mdframed/mdframed.pdf)
> >
> > I have searched in the wiki and found \defineenumeration:
> > This is near of that what I need. However I explicitly does not need an
> > enumeration (so no number or counter). Also I am not sure if I can set a
> > background
look like (it is copied
out of page 4: Definition: Inhomogeneous linear of the mdframed
documentation:
http://mirrors.ctan.org/macros/latex/contrib/mdframed/mdframed.pdf)
I have searched in the wiki and found \defineenumeration:
This is near of that what I need. However I explicitly doe
omogeneous linear of the mdframed
documentation:
http://mirrors.ctan.org/macros/latex/contrib/mdframed/mdframed.pdf)
I have searched in the wiki and found \defineenumeration:
This is near of that what I need. However I explicitly does not need an
enumeration (so no number or counter). Also I am not sur
umber of the header in the document. As a
> > result, the prefix from the external document is calculated using the
> > structure of the current document.
> >
> > Here is the MWE, which consists of two files:
> > foo.tex:
> >
> > \defineenumeration[remark
number of the header in the document. As a
result, the prefix from the external document is calculated using the
structure of the current document.
Here is the MWE, which consists of two files:
foo.tex:
\defineenumeration[remark][prefix=yes, prefixsegments=chapter:section]
\starttext
Equations
ce to a section as a sequential number of the header in the
> document. As a result, the prefix from the external document is
> calculated using the structure of the current document.
>
> Here is the MWE, which consists of two files:
> foo.tex:
>
> \defineenumeration[remark][prefix=ye
document is calculated using the structure of the
current document.
Here is the MWE, which consists of two files:
foo.tex:
\defineenumeration[remark][prefix=yes, prefixsegments=chapter:section]
\starttext
Equations: \in[eq1], \in[eq2], \in[eq3], \in[eq4]
Sections: \in[sec1], \in[sec2], \in[sec3
Alexandre Christe via ntg-context schrieb am 07.11.2022 um 21:04:
Dear list,
Is there a trick to not apply the leftoffset to the header of a
defineenumeration?
MWE:
[...]
You can use \offset to shift the enumeration title.
\defineframed
[ExampleHeadFrame]
[location=low,
background
Dear list,
Is there a trick to not apply the leftoffset to the header of a
defineenumeration?
MWE:
\definetextbackground
[textFrameEx]
[
frame=off,
framecolor=darkgreen,
rulethickness=2ex,
background=,
location=paragraph,
leftoffset=2.25ex,
rightoffset=2.25ex
]
\defineblock[answer]
\hideblocks[question]
\hideblocks[answer]
\defineenumeration
[question]
[text=Question,
after={\blank[2*big]},
inbetween={\blank[nowhite]},
way=bychapter,
prefixsegments=chapter,
prefix=yes]
\defineenumeration
[answer]
[counter=answer
,
> >title=yes,
> >titleleft=,
> >titleright=,
> >titlestyle=normal,
> >prefix=yes,
> >prefixsegments=chapter,
> >way=bychapter,
> > headcommand=\groupedcommand{}{.},
> >numbercommand=\groupedcommand{}{},
> >
edcommand{}{},
>titlecommand=\groupedcommand{(}{)},
>width=broad]
>
> \defineenumeration
>[definition]
>[text=Définition,
> number=yes,
> style=italic]
>
> \defineenumeration
>[proposition]
>[text=Proposition,
> number=yes,
,
prefixsegments=chapter,
way=bychapter,
headcommand=\groupedcommand{}{.},
numbercommand=\groupedcommand{}{},
titlecommand=\groupedcommand{(}{)},
width=broad]
\defineenumeration
[definition]
[text=Définition,
number=yes,
style=italic]
\defineenumeration
[proposition
{(}{)},
width=broad,
way=bychapter,
prefix=yes,
prefixsegments=chapter,
prefixconversionset=digit,]
\defineenumeration
[definition]
[text=Définition,
number=yes,
style=italic]
\starttext
\startchapter
[title={First Chapter}]
\startdefinition
[title={My first définition
Johann Birnick via ntg-context schrieb am 04.07.2022 um 18:29:
Hey there,
please consider:
\starttext
\defineenumeration[definition][text=Definition, alternative=serried]
\setupnumber[definition][way=bysection, numbersection=yes
Hey there,
please consider:
\starttext
\defineenumeration[definition][text=Definition, alternative=serried]
\setupnumber[definition][way=bysection, numbersection=yes]
\section{My section 1}
\startdefinition
My fist definition
\stopdefinition
ou are certain that the there will be no multi-line item (i.e. item text is
short enough that it fits in slightly less than half of textwidth) you can use
an enumeration, and put the contents inside a two-column layout:
%%% start example-1
\define[1]\aitemcmd{\inframed[width=1cm,align=flushrigh
Avoid using \startformula \stopformula in itemize. Use \dfrac to get
display style fraction.
\defineenumeration
[exercici]
[alternative=serried, before={\blank[medium]\testpage[1]},
text={Exercici}, stopper={.\space}, width=fit, headstyle=\ss,
distance=0.25em, width=fit, headcolor
eb 2022, at 11:28, Xavier B. via ntg-context <
> ntg-context@ntg.nl> wrote:
> > >
> > > In my previous post [
> https://mailman.ntg.nl/pipermail/ntg-context/2022/105138.html], I don't
> know the reason, but the attached code des not display very well in mailing
&
know the reason, but the attached code des not display very well in mailing
> > list. I put it here:
> >
> > \defineenumeration
> > [exercici]
> > [alternative=serried, before={\blank[medium]\testpage[1]},
> > text={Exercici}, stopper={.\space}, width=fit, heads
> On 23 Feb 2022, at 11:28, Xavier B. via ntg-context
> wrote:
>
> In my previous post
> [https://mailman.ntg.nl/pipermail/ntg-context/2022/105138.html], I don't know
> the reason, but the attached code des not display very well in mailing list.
> I put it here:
&g
In my previous post
[https://mailman.ntg.nl/pipermail/ntg-context/2022/105138.html], I don't know
the reason, but the attached code des not display very well in mailing list. I
put it here:
\defineenumeration
[exercici]
[alternative=serried, before={\blank[medium]\testpage[1]}, text
That pretty much sums it up: if I change \title to \chapter, for example,
the list is generated only if I set the option criterium=chapter, for
example. Is criterium really necessary in this case?
```
\defineenumeration [Exercício] [alternative=top, before=\blank,
after=\blank, between=\blank
Hi!
I’ve been doing this in my exams to define exercises in a structural way.
\defineenumeration[uppgift]
\setupenumerations[uppgift][alternative=left,width=1cm,text=
,after={\blank[2*big]}]
\starttext
\startuppgift
Here comes the exercise
\stopuppgift
\stoptext
I want a simple solution
in the block. Another
possible method is to shift the title to the right with the \offset
command and increase the distance between the title and the following text.
\defineprocessor [upright] [style=normal]
\defineconversionset [upright-n] [] [upright->n]
\defineenumeration
[rem
:
> Can solve with
>
>
> \defineenumeration[remark][
> alternative=serried,
> width=fit,
> text={{\it Remark}},
> headstyle=\tf,
> indenting={first,medium},
> %headcommand=\groupedcommand{\hskip 1em}{},
> ]
>
>
> Mikael Sundqvist via ntg-context 於 2
Can solve with
\defineenumeration[remark][
alternative=serried,
width=fit,
text={{\it Remark}},
headstyle=\tf,
indenting={first,medium},
%headcommand=\groupedcommand{\hskip 1em}{},
]
Mikael Sundqvist via ntg-context 於 2021年12月31日 週五
上午4:55寫道:
> Hi,
>
> I have two questio
orrect way to (in the example
below) get Remark in italic and the number upright?
/Mikael
\defineenumeration[remark][
alternative=serried,
width=fit,
text=Remark,
headstyle=italic,
indenting={yes,medium},
%headcommand=\groupedcommand{\hskip 1em}{},
]
\starttext
\samplefile{tufte}
\startremark
On Saturday, November 20, 2021 8:34:52 PM IST Wolfgang Schuster wrote:
> Provide a complete minimal example to increase your chances for an answer.
>
> Wolfgang
I was inspecting this just now and figured out that in one of the
\defineenumeration I was inheriting another enumeration bl
kauśika via ntg-context schrieb am 20.11.2021 um 14:28:
On Saturday, November 20, 2021 11:31:24 AM IST kauśika wrote:
Dear list,
I have the following enumeration block.
\defineenumeration[verse]
\setupenumeration[verse]
[alternative=leftmargin,
text=,
width=fit,
distance=1em
On Saturday, November 20, 2021 11:31:24 AM IST kauśika wrote:
> Dear list,
>
> I have the following enumeration block.
>
> \defineenumeration[verse]
> \setupenumeration[verse]
> [alternative=leftmargin,
>text=,
>width=fit,
>distance=1em,
>wa
Dear list,
I have the following enumeration block.
\defineenumeration[verse]
\setupenumeration[verse]
[alternative=leftmargin,
text=,
width=fit,
distance=1em,
way=bysection]
I actually want to (flush) left align the enumeration's number inside the left
margin and give it a blue
][local=yes,nested=yes]
\startmode[solution]
\defineenumeration[solution][fancy setup...]
\stopmode
Then, in the main tex file:
\startsolution
...
\stopsolution
By default, gives the version without solution. Compile with --mode=solution
to get the version with solution. The same
gt;
> > > Then one authors the complete work in a single project, but you can
> > > produce a variety of versions, depending on the mode chosen:
> > >
> > > \definemode[unabridged]
> > > etc.
> > >
> > > Can one do this in conte
, depending on the mode chosen:
\definemode[unabridged]
etc.
Can one do this in context?
Yes!
This is what I do (for solutions in homework assignments):
\definebuffer[solution][local=yes,nested=yes]
\startmode[solution]
\defineenumeration[solution][fancy setup...]
\stopmode
Then, in the main
n the mode chosen:
>
> \definemode[unabridged]
> etc.
>
> Can one do this in context?
Yes!
This is what I do (for solutions in homework assignments):
\definebuffer[solution][local=yes,nested=yes]
\startmode[solution]
\defineenumeration[solution][fancy setup...]
Here’s what I have now (result attached):
\define[1]\ÜbungNrCmd{\inmargin{\offset[y=3em]{\rotate[rotation=90]{\SectionFont
#1
\defineenumeration[Übung][
text=Übung,
title=yes,
titleleft=,
titleright=,
titledistance=-1em,
titlestyle=\SectionFont,
%numberstyle=\SectionFont
t;>>> draw a blank.
>>>
>>> Use an enumeration.
>> Thank you, but how can I define a title/caption for the enumeration and its
>> reference?
>
>
> \defineenumeration
> [Exercise]
> [text=Exercise,
> title=yes,
> titleleft
ion for the enumeration and its
> reference?
>
Hi Hraban,
Here’s an example from my textbook which might be helpful. I use this
enumeration for example problems, but exercises could be similar. You have
access to the rest of the textbook, so feel free to grab anything useful.
-Gavin
not float.
Which structure should I use for them? There must be an easy answer, but I draw
a blank.
Use an enumeration.
Thank you, but how can I define a title/caption for the enumeration and its
reference?
\defineenumeration
[Exercise]
[text=Exercise,
title=yes,
titleleft
{\math{\mathbb{N}}\autoinsertnextspace}
\defineenumeration
[test]
[title=yes,
text={Test},
style=italic]
\starttext
\N
\starttest
\m{\forall n \in \N}
\stoptest
\stoptext
tex error > tex error on line 64 in file ./terminale_suites_2.tex:
Use of \N doesn't match
Hello,
I don't understand why this macro works with this simple example but return
the following error if I use it for chapters in my book.
Thanks
Fabrice
\setupbodyfont
[newcomputermodern-book,11pt]
\unexpanded\def\N{\math{\mathbb{N}}\autoinsertnextspace}
\defineenumeration
[test
; ...
core-con.lua (line 1155):
local ordinals = {
[...]
french = function(n)
if n == 1 then
return "er"
+ else
+ return "e"
end
end,
}
Then I tried to use the key alternative = serried but without success.
This works f
Fabrice Couvreur via ntg-context schrieb am 08.08.2021 um 17:47:
Hello,
Is it possible to create an enumeration style to get this :
1 ^ {er} exemple
2 ^ {e} exemple
3 ^ {e} exemple
The conversion needs a fix but this is how you can do it.
\defineenumeration
[test]
[text
s end with a dot both with a title
> > and without title. How to do ?
> > Thanks
> > Fabrice
> >
> > [...]
>
>
> You can create simple dummy environments to test the parameters.
>
> \defineenumeration
>[grouptest]
>[title=yes,
>
Fabrice Couvreur via ntg-context schrieb am 27.07.2021 um 18:57:
Hi,
The name of the environment must always end with a dot both with a title
and without title. How to do ?
Thanks
Fabrice
[...]
You can create simple dummy environments to test the parameters.
\defineenumeration
=\groupedcommand{}{\bf.},
width=broad]
\defineenumeration
[definition]
[text=Définition,
number=no,
headcommand=\groupedcommand{}{},
style=italic]
\starttext
\startdefinition{With a title}
\samplefile{lorem}
\stopdefinition
Without title but no dot after the name
On 7/27/2021 4:32 PM, Fabrice Couvreur via ntg-context wrote:
Hello,
How to make the macro work in the environment definition ?
not sure what you want to achieve, maybe this?
\protected\def\card#1{\m{\mfunction{Card}\thinspace#1}}
\defineenumeration
[définition]
[text=Définition
Hello,
How to make the macro work in the environment definition ?
Thank you
Fabrice
\unexpanded\def\card#1{\math{\text{Card}\thinspace#1}}
\defineenumeration
[definition]
[text=Définition,
number=no,
headcommand=\groupedcommand{}{.},
style=italic]
\starttext
,
background=color,
backgroundcolor=lightgray,
foregroundcolor=,
foregroundstyle=]
\setupenumerations
[before={\blank},
after={\blank},
alternative=top,
title=yes,
titleleft={},
titleright={},
titlestyle=bold,
width=broad]
\defineenumeration
[exercice]
[text=Exercice
foregroundstyle=]
>
>
> \setupenumerations
> [before={\blank},
>after={\blank},
>alternative=top,
>title=yes,
> titleleft={},
>titleright={},
>titlestyle=bold,
>width=broad]
>
> \defineenumeration
>[exercice]
={},
titlestyle=bold,
width=broad]
\defineenumeration
[exercice]
[text=Exercice,
number=yes,
numbercommand=\groupedcommand{}{.},
style=italic]
\defineenumeration
[solution]
[text=Solution,
headcommand=\ACFRAME,
number=no,
numbercommand=\groupedcommand{}{},
style
\setupbodyfont[modern]
\setupenumerations
[before={},
after={\blank},
alternative=serried,
number=no,
title=yes,
titleleft={(},
titleright={)},
prefix=yes,
prefixsegments=chapter,
way=bychapter,
titlestyle=bold,
width=broad]
\defineenumeration
[definition
={)},
prefix=yes,
prefixsegments=chapter,
way=bychapter,
titlestyle=bold,
width=broad]
\defineenumeration
[definition]
[text=Définition,
number=no,
headcommand=\groupedcommand{}{},
style=normal]
\starttext
\startdefinition
\input knuth
\stopdefinition
that should work.
>
> Best,
>
> Mikael
>
> On Mon, Dec 21, 2020 at 11:47 AM Otared Kavian wrote:
>
>> Hi Mickael,
>>
>> Maybe this is what you want:
>>
>> \defineenumeration[example]
>> [text=Example,
>> title=yes
stopexample
>
> and that has been working before. Reading in setup-en.pdf, it also looks to
> me as if that should work.
>
> Best,
>
> Mikael
>
> On Mon, Dec 21, 2020 at 11:47 AM Otared Kavian <mailto:ota...@gmail.com>> wrote:
> Hi Mickael,
>
>
,
Mikael
On Mon, Dec 21, 2020 at 11:47 AM Otared Kavian wrote:
> Hi Mickael,
>
> Maybe this is what you want:
>
> \defineenumeration[example]
> [text=Example,
> title=yes,
> titleleft=,
> titleright={.},
> ]
>
&
Hi Mickael,
Maybe this is what you want:
\defineenumeration[example]
[text=Example,
title=yes,
titleleft=,
titleright={.},
]
\starttext
\startexample{Title}
This is a test.
\stopexample
\stoptext
Of course is you say
text=,
then you get only
Hi,
Has anything changed with titles and enumerations? I expected a title
"Title" with the following setup.
\defineenumeration[example][
text=Example,
title=yes,
]
\starttext
\startexample[title={Title}]
This is a test.
\stopexample
\stoptext
But it does not show up
Hi there,
in my document(s) I have enumerations (created with \defineenumeration) and
"typing"s (created with \definetyping) and I need to give a specific layout to
them. In particular, I want to add textbackground (created with
\definetextbackground) and sometimes a sideba
ssi
> >
> > Thank you! I have two more questions:
> >
> > 1. Where can I find a documentation for this command? Even Google finds
> > nothing.
>
> I took it from the "Commands" manual. You can find it here:
>
> ./tex/texmf-contex
at the end. Here is a
screenshot:
https://s12.directupload.net/images/201120/lfmwp5lh.png
The theorem is a normal enumeration. Like this:
\defineenumeration[Theorem][before=\startsidebar, after=stopsidebar]
\startsidebar and \stopsidebar should be called in horizontal mode,
since you might wa
,
background=color,
backgroundcolor=white,
]
%%%
\defineenumeration[proclaim]
[text=,
before={\starttextbackground[leftbartext]},
after={\stoptextbackground},
style=slanted,
title=yes,
titleleft=,
titleright
ions of my enumeration messes up whitespace at the end. Here is a
screenshot:
https://s12.directupload.net/images/201120/lfmwp5lh.png
The theorem is a normal enumeration. Like this:
\defineenumeration[Theorem][before=\startsidebar, after=stopsidebar]
I would greatly appreciate your help.
Thank you!
Joh
Just about to have these homework files finished!
My final problem (I hope) is keeping question/answer blocks together.
The questions are currently defined via \defineenumeration with a \testpage
(see below). I fiddled with the \testpage and found that \testpage[6] gave me
the best results
1 - 100 of 816 matches
Mail list logo